package com.hpl.singletonmode.singleton;

/**
 * 饿汉式
 * <p>
 * 在类加载时就创建实例，线程安全。
 * </p>
 * @author hpl
 * @since 2024/12/12
 */
public class SingletonHungry {

    private static final SingletonHungry INSTANCE = new SingletonHungry();

    private SingletonHungry() {}

    public static SingletonHungry getInstance() {
        return INSTANCE;
    }
}